﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Lidgren.Network;

namespace Network.Messages.LiveControl
{
  public  class ResponseTime: NovaMessage
    {

      public ResponseTime() : base((ushort)CustomMessageType.ResponseTime)
        {
      }
        
      public long StartTime;
        public override void WritePayload(NetOutgoingMessage message)
        {
            base.WritePayload(message);
            message.Write(StartTime);
        }

        public override void ReadPayload(NetIncomingMessage message)
        {
            base.ReadPayload(message);
            StartTime = message.ReadInt64();
        }
    }
}
